﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wolfy.NetDisk.Core.Model
{
    public class Folder : DeleteEntity
    {
        /// <summary>
        /// 文件夹名称
        /// </summary>
        public string Name { set; get; }
        /// <summary>
        /// 文件夹的相对路径
        /// </summary>
        public string Path { set; get; }
        /// <summary>
        /// 图标
        /// </summary>
        public virtual Icon Icon { set; get; }
        /// <summary>
        /// 父文件夹
        /// </summary>
        public virtual Folder ParentFolder { set; get; }
        /// <summary>
        /// 一个文件夹中可以有多个文件夹
        /// </summary>
        public virtual ICollection<Folder> Folders { set; get; }
        /// <summary>
        /// 文件夹中可以包含多个文件
        /// </summary>
        public virtual ICollection<File> Files { set; get; }
     
        /// <summary>
        /// 文件属于用户
        /// </summary>
        public virtual User User { set; get; }
        public int Sort { get { return 2; } }
    }
}
